const path = require("path");

module.exports = {
  mode: "production",
  entry: "./src/main.js",
  devtool: false,
  output: {
    path: path.resolve(__dirname, "./build"),
    filename: "bundle.js",
    clean: true,
  },
  module: {
    rules: [
      {
        test: /\.m?js$/,
        exclude: /node_modules/,
        use: {
          loader: "babel-loader",
          // options: {
          //   // plugins: ["@babel/plugin-transform-arrow-functions"],
          //   presets: ["@babel/preset-env"],
          // },
        },
      },
    ],
  },
};
